+((w) => {
    let timer;
    w.utils.debounce = (func, delay) => {
        //  TODO
    };

    /**
     * 节流
     * @param func
     * @param delay
     * @param args
     */
    w.utils.throttle = (func, delay, args) => {
        let context = this;
        if (timer) {
            return;
        }
        timer = setTimeout(() => {
            func(args);
            timer = null;
        }, delay)
    };
})(window)